package com.lagou.edu.repository;

import com.lagou.edu.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by shixi  on 2021/1/28
 */
public interface UserRepositry extends JpaRepository<User,Integer> {
    User findByToken(String token);

    User findByEmailAndPassword(String email, String password);

    User findByEmail(String email);
}